package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface FoodMapper {
    //功能：根据商家编号查询所属食品信息
    @Select("select * from food where businessId = #{businessId}")
    public List<Food> list(Integer businessId);

    @Select("select * from food where foodId = #{foodId}")
    public Food getFoodById (Integer foodId);
}
